<?php
/**
 * @Notes: 文件描述
 * @Interface getCondition
 * @Return mixed
 * @Author: fc
 * @Time: 2021/9/22 20:35
 */

namespace app\index\controller;


use app\common\model\Goods;
use think\facade\Cache;
use think\Controller;

class ModelEvent extends Controller
{

    public function testModelEvent()
    {
        return "hello fc2021";

        //Cache::store('redis')->setEx('hello',60, 1);

        $goodsModel = new Goods();
        $data['goods_name'] = '憨豆手机2021';
        $re =  $goodsModel->save($data);

        return 'de';
    }

}